
package cn.org.chiss.rhin._2015.base.document;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>associationStatusPrimitive的 Java 类。
 * 
 * <p>以下模式片段指定包含在此类中的预期内容。
 * <pre>
 * &lt;simpleType name="associationStatusPrimitive"&gt;
 *   &lt;restriction base="{http://www.chiss.org.cn/rhin/2015}stringPrimitive"&gt;
 *     &lt;enumeration value="original"/&gt;
 *     &lt;enumeration value="reference"/&gt;
 *   &lt;/restriction&gt;
 * &lt;/simpleType&gt;
 * </pre>
 * 
 */
@XmlType(name = "associationStatusPrimitive")
@XmlEnum
public enum AssociationStatusPrimitive {

    @XmlEnumValue("Original")
    ORIGINAL("Original"),
    @XmlEnumValue("Reference")
    REFERENCE("Reference");
    private final String value;

    AssociationStatusPrimitive(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static AssociationStatusPrimitive fromValue(String v) {
        for (AssociationStatusPrimitive c: AssociationStatusPrimitive.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }

}
